package net.oschina.app.ui.activity.general;

import net.oschina.app.bean2.GeneralNewsDetailBean;
import net.oschina.app.protocol.AccessProtocol;
import net.oschina.app.protocol.general.NewsDetailProtocol;
import net.oschina.app.ui.activity.WebActivity;

/**
 * Created by Shinelon on 2017/1/18.
 */

public class NewsWebActivity extends WebActivity {
    @Override
    protected String getToolBarTitle() {
        return "资讯详情";
    }

    @Override
    protected String getUrl(Object body) {
        return ((GeneralNewsDetailBean)body).getNews().getUrl();
    }

    @Override
    protected AccessProtocol getAccessProtocol() {
        return new NewsDetailProtocol();
    }
}
